package com.yfp.operation.mapper;

import com.yfp.operation.domain.MarCouponDirectional;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.operation.domain.dto.GrantOrienteeringDTO;
import com.yfp.operation.domain.dto.MarCouponDirectionalDTO;
import com.yfp.operation.domain.vo.MarCouponDirectionalVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author admin
 * @description 针对表【mar_coupon_directional(优惠券定向发放)】的数据库操作Mapper
 * @createDate 2024-09-13 10:55:06
 * @Entity domain.com.yfp.operation.MarCouponDirectional
 */
public interface MarCouponDirectionalMapper extends BaseMapper<MarCouponDirectional> {

    /**
     * 获取该优惠券定向发放的手机号
     *
     * @return
     */
    List<String> getMobileAll(Long couponId);

    /**
     * 批量添加
     *
     * @param directionalList
     */
    void adds(@Param("directionalList") List<MarCouponDirectional> directionalList);

    /**
     * 定向发放列表
     *
     * @param marCouponDirectionalDTO
     * @return
     */
    List<MarCouponDirectionalVO> directionalList(MarCouponDirectionalDTO marCouponDirectionalDTO);

    /**
     * 修改状态
     *
     * @param yesDTO
     */
    void updateStatus(GrantOrienteeringDTO yesDTO);

    /**
     * 删除
     *
     * @param id
     */
    void deleteByIdMarCouponDirectional(Long id);

    /**
     * 删除定向发放列表-一键删除
     *
     * @param couponId
     */
    void bulkDelByMarCouponId(Long couponId);
}




